<script setup lang="ts">
import { ElMessage } from 'element-plus'
function onClick() {
  ElMessage({
    message: 'Congrats, this is a success message.',
    type: 'success',
  })
}
</script>

<template>
  <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="@/assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
  <a href="">你好fasdfasdf</a>
  <el-button type="primary" @click="onClick">按钮</el-button>
  <HelloWorld msg="Vite + Vue" />
  hello
  <SvgIcon name="vue"></SvgIcon>
</template>

<style lang="scss" scoped>
.logo {
  padding: 1.5em;
  height: 6em;
  will-change: filter;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}

a {
  display: block;
  width: 50px;
  color: $bgColor;

  @include singleLineEllipsis;
}
</style>
